package o;

import android.widget.ListView;
import androidx.annotation.NonNull;

public class iy extends ir {
    private final ListView ʻ;

    public iy(@NonNull ListView listView) {
        super(listView);
        this.ʻ = listView;
    }

    public void ˎ(int i, int i2) {
        ix.ˋ(this.ʻ, i2);
    }

    public boolean ˊ(int i) {
        return false;
    }

    public boolean ॱॱ(int i) {
        ListView listView = this.ʻ;
        int count = listView.getCount();
        if (count == 0) {
            return false;
        }
        int childCount = listView.getChildCount();
        int firstVisiblePosition = listView.getFirstVisiblePosition();
        int i2 = firstVisiblePosition + childCount;
        if (i > 0) {
            if (i2 >= count && listView.getChildAt(childCount - 1).getBottom() <= listView.getHeight()) {
                return false;
            }
        } else if (i >= 0) {
            return false;
        } else {
            if (firstVisiblePosition <= 0 && listView.getChildAt(0).getTop() >= 0) {
                return false;
            }
        }
        return true;
    }
}
